<?php
include_once './computer.php';
include_once './UsbChoose.php';

$computer ='dell';
$Usb = new UsbChoose();
//依赖注入：将usb对象注入到computer类，因为computer的工作依赖于usb
$computer = new computer($computer,$Usb->makeUsb());
$computer->useKeyboard();
$computer->useMouse();
$computer->useUDisk();
